#!/bin/sh
set -eu

CPPCHECK="$HOME/bin/cppcheck"
CPPCHECK_OPTIONS="--enable=all --verbose --style --inline-suppr \
-I src/main/fixparser/ \
--template '{file}:{line}:{severity}:{id}:{message}'"

cd `dirname $0`
find ./src -type f -print | fgrep -v ".svn" | xargs ${CPPCHECK} ${CPPCHECK_OPTIONS}
